# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=py3-pylspci
pkgver=0.4.1
pkgrel=0
pkgdesc="Python wrapper for lspci"
url="https://lucidiot.gitlab.io/pylspci"
arch="noarch"
license="GPL-3.0-only"
depends="py3-cached-property>=1.5.1 pciutils"
makedepends="py3-setuptools"
source="https://gitlab.com/Lucidiot/pylspci/-/archive/$pkgver/pylspci-$pkgver.tar.gz"
builddir="$srcdir/pylspci-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
226b78766d6dab0ffd431177a4ed910ac0e3f0ed9f0436d60f769f7c6c78cd1075acf815e41d060d1baf48708e97d47453c2b2826fc27fc815da45dced469c97  pylspci-0.4.1.tar.gz
"
